/**
 * 
 */
package com.suixun.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.suixun.Result;
import com.suixun.entity.Devicelist;
import com.suixun.enums.APICode;
import com.suixun.service.TestService;

/**
 * @author Administrator
 *
 */
@Controller
@RequestMapping(value = "/test")
public class TestController {

	@Resource
	private TestService testService;

	
	@RequestMapping(value = "queryDeviceList")
	public String queryDeviceList(HttpServletRequest request, Model model) {
		
		List<Devicelist> list = testService.queryDevicelist();
		
		model.addAttribute("list", list);
		return "/test/testQueryDevice";
	}
}
